package com.zb.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zb.annotation.NumberPattern;
import com.zb.result.PageUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;


/**
 * @Author WEN
 * @Date 2023/8/31 0031
 **/
@Data
@ApiModel("编码列表查询条件")
public class CodeListSelectVo extends PageUtil {
    @NumberPattern(regexp = "^(1|2)$", message = "类型参数不合法！")
    @ApiModelProperty(value = "类型：1-成品，2-备件")
    private Integer type;

    @ApiModelProperty(value = "品牌ID")
    private Long brandId;

    @ApiModelProperty(value = "商品分类ID")
    private Long typeId;

    @ApiModelProperty(value = "商品关键词：商品型号/商品名称")
    private String goods;

    @ApiModelProperty(value = "关键词搜索：防伪编码")
    private String code;

    @ApiModelProperty(value = "编码创建开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date startTime;

    @ApiModelProperty(value = "编码创建结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}
